<!DOCTYPE html>
<html>
  <head>
    <meta charset='utf-8'>
    <meta http-equiv="X-UA-Compatible" content="chrome=1">

    <link rel="stylesheet" type="text/css" href="{{ url_for('webui.static', filename='css/stylesheet.css') }}" media="screen">
    <link rel="stylesheet" type="text/css" href="{{ url_for('webui.static', filename='css/github-dark.css') }}" media="screen">
    <title>Ares</title>
    {% with messages = get_flashed_messages() %}
{% if messages %}
<ul>
  {% for message in messages %}
  <li>{{message}}</li>
  {% endfor %}
{% endif %}
</ul>
{% endwith %}

  </head>

<script src="{{ url_for('webui.static', filename='js/jquery-3.2.1.min.js') }}"></script>
<script src="{{ url_for('webui.static', filename='js/jquery.md5.js') }}"></script>

<body>

{% if not custom_header %}
<header>
  <div class="container">
    <h1>{{ title }}</h1>
    {% if previous_page %}
    <a href="{{ previous_page }}">&lt;&lt; Back</a>
    {% endif %}
    {% if session.username %}
    <h3 style="text-align: right">Logged in as {{ session.username }}</h3>
    <h2 style="text-align: right"><a href="{{ url_for('webui.change_password') }}">Change Password</a>  <a href="{{ url_for('webui.logout') }}">Disconnect</a></h2>
    {% endif %}
   </div>
</header>
{% endif %}
